package net.micro.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.micro.dto.UserMenus;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("system_menu")
public class SystemMenuDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long microId;
    @TableField(exist = false)
    private MicroAppDO microApp;
    private Long parentId;
    private String name;
    private String url;
    private String component;
    private Integer sort;
    private Integer type;
    private Boolean deleted;
    @TableField(exist = false)
    private List<SystemMenuDO> children;
}
